// (C) Szymon Piechowicz, February 2012

#ifndef __LIGHTS_H__
#define __LIGHTS_H__


#include <stdbool.h>


typedef void (*lights_brightness_callback)(bool is_bright);


void lights_init(void);

void lights_on(void);
void lights_off(void);
void lights_directionals_l_blinking_on(void);
void lights_directionals_l_blinking_off(void);
void lights_directionals_r_blinking_on(void);
void lights_directionals_r_blinking_off(void);
void lights_directionals_both_blinking_on(void);
void lights_directionals_both_blinking_off(void);
void lights_spotlight_on(void);
void lights_spotlight_off(void);

// Darkness indicator LED is operated by this module. You can supply NULL
// callback if you do not need to take further action.
void lights_start_measuring_brightness(lights_brightness_callback callback);
void lights_stop_measuring_brightness(void);


#endif